.header{
    position: relative;
    width: 100%;
    max-width: 1920px;
    aspect-ratio: 1920 / 1130;
    min-height: 420px;
    margin: 0 auto;
    background: url("../images/header.jpg") top center no-repeat;
    background-size: 100% 100%;
}
.header-hotspots{
    position: absolute;
    inset: 0;
}
.header-link{
    position: absolute;
    display: block;
    line-height: 0;
    transition: all 0.5s ease;
}
.header-link img{
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}
.header-link:hover{
    filter: brightness(1.08);
    transform: scale(1.02);
}
/**
 * 9个活动入口
 */
.link-01{ left: 1.4%;  top: 16.17%; width: 8.33%;  }  /* 新人 160x399 */
.link-02{ left: 17.8%; top: 24.24%; width: 13.18%; }  /* 资历 253x117 */
.link-03{ left: 46.2%;  top: 56.6%;width: 13.28%; }  /* 返场 255x125 */
.link-04{ left: 43.2%; top: 30.19%; width: 18.28%; }  /* 中间活跃 351x164 */
.link-05{ left: 18.4%; top: 39.8%; width: 12.55%; }  /* 回归 241x146 */
.link-06{ left: 67.6%; top: 26.07%; width: 13.18%; }  /* 情侣 253x210 */
.link-07{ left: 88%; top: 14.43%; width: 7.81%;  }  /* 单身 150x300 */
.link-08{ left: 80.1%; top: 49.08%; width: 15.78%; }  /* 排行榜 303x232 */
.link-09{ left: 5%; top: 57.25%; width: 13.54%; }  /* 暂未开启 260x192 */
/**
 * 右上角功能按钮热区（下载游戏 / 进入官网）
 */
.btn-download{ left: 65.8%; top: 1.5%; width: 12.29%; } /* 下载游戏按钮 236x52 */
.btn-official{ left: 78.8%; top: 1.5%; width: 12.29%; } /* 进入官网按钮 236x52 */
@media screen and (max-width: 1200px){
    .header{
        min-height: 320px;
    }
}
@media screen and (max-width: 750px){
    .header{
        min-height: 240px;
    }
}
/**
 * 内容区：与 header 相同比例缩放（设计稿 1920×1904）
 */
.content{
    position: relative;
    width: 100%;
    max-width: 1920px;
    aspect-ratio: 1920 / 1904;
    margin: 0 auto;
    background: url("../images/content.jpg") top center no-repeat;
    background-size: 100% 100%;
    /* 子元素可用 cqw：随内容区宽度同比缩放（1920 宽度下 1cqw≈19.2px） */
    container-type: inline-size;
    container-name: content;
}
.content-layer{
    position: absolute;
    inset: 0;
}
/**
 * 目前参与人数：设计稿 30px → 1.5625cqw；不支持容器查询时退回按视口比例
 */
.current-participants{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 11.74%;
    width: 32.70833%;
    font-size: clamp(14px, calc(100vw * 30 / 1920), 30px);
    line-height: 1.35;
    text-align: center;
    color: #fff;
}
@supports (container-type: inline-size) {
    .current-participants{
        font-size: clamp(14px, 1.5625cqw, 30px);
    }
}
.current-participants-num{
    font-weight: 700;
}
/**
 * 规则说明：24px、黑色描边，强调 span 为 #CF0CFF
 */
.rule{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 15.2%;
    width: 86%;
    max-width: 1080px;
    box-sizing: border-box;
    font-size: clamp(12px, calc(100vw * 24 / 1920), 24px);
    line-height: 1.6;
    text-align: center;
    color: #fff;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}
@supports (container-type: inline-size) {
    .rule{
        font-size: clamp(12px, 1.25cqw, 24px);
    }
}
.rule span{
    color: #CF0CFF;
}
/**
 * Perfect + 滑块纵向组合：图标在轨道正上方
 */
.slider-stack{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 19.5%;
    width: 22.34375%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55%;
    z-index: 2;
}
/**
 * 滑块区域（slider-bg 429×42、thumb 51×51、thumb-bg 194×22）
 */
.slider-wrap{
    position: relative;
    width: 100%;
    flex-shrink: 0;
}
.slider-track{
    position: relative;
    width: 100%;
    aspect-ratio: 429 / 42;
    background: url("../images/slider-bg.png") no-repeat center / 100% 100%;
    touch-action: none;
    user-select: none;
}
.slider-glow{
    position: absolute;
    left: 2.3%;
    top: 50%;
    transform: translateY(-50%);
    height: 52.38%;
    width: 0;
    max-width: 96%;
    background: linear-gradient(90deg, rgba(0, 210, 255, 0.95) 0%, rgba(70, 140, 255, 0.35) 100%);
    pointer-events: none;
    z-index: 0;
    border-radius: 8px;
}
.slider-thumb{
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    width: 11.888%;
    aspect-ratio: 1;
    border: 0;
    background: url("../images/thumb.png") no-repeat center / 100% 100%;
    cursor: grab;
    z-index: 2;
    overflow: hidden;
    text-indent: -9999px;
    line-height: 0;
}
.slider-thumb:focus{
    outline: 2px solid rgba(255,255,255,0.6);
    outline-offset: 2px;
}
.slider-thumb.is-dragging{
    cursor: grabbing;
}
.slider-thumb:disabled{
    cursor: default;
    filter: grayscale(0.1);
}
/**
 * Perfect 244×83：宽度为滑条 429 的 244/429，与轨道对齐
 */
.perfect-icon{
    position: relative;
    width: 56.88%;
    margin-bottom: 5.5%;
    flex-shrink: 0;
    line-height: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
}
.perfect-icon.is-show{
    visibility: visible;
    opacity: 1;
}
.perfect-icon img{
    width: 100%;
    height: auto;
    display: block;
}
/**
 * 五个领取按钮：receive.png / receive1.png（177×96）
 */
.receive-row{
    position: absolute;
    inset: 0;
}
/**
 * 五个领取按钮：使用百分比绝对定位（缩放不跑位）
 * 可按设计稿继续微调 left/top
 */
.receive-btn{
    position: absolute;
    width: 9.21875%;
    aspect-ratio: 177 / 96;
    background: url("../images/receive.png") no-repeat center / 100% 100%;
    overflow: hidden;
    text-indent: -9999px;
    line-height: 0;
    border: 0;
    display: block;
    color: transparent;
}
.receive-1{ left: 7.4%; top: 37.6%; }
.receive-2{ left: 26%; top: 43.8%; }
.receive-3{ left: 45.5%; top: 47.2%; }
.receive-4{ left: 64.5%; top: 43.8%; }
.receive-5{ left: 82.6%; top: 37.6%; }
.receive-btn:hover{
    background-image: url("../images/receive1.png");
    color: transparent;
}
/**
 * 底部三个二维码：设计 180px，加大可视尺寸约 240px@1920（12.5cqw），防止 flex 压缩
 */
.qrcode-row{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 17.4%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5%;
    width: 88%;
    max-width: 900px;
}
.qrcode-slot{
    flex: 0 0 auto;
    /* 约 240px@1920，比 9.375%（180px）更易扫；按视口回退 */
    width: clamp(160px, calc(100vw * 240 / 1920), 260px);
    aspect-ratio: 1;
    background: rgba(0,0,0,0.25);
    box-sizing: border-box;
    border: 1px dashed rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}
@supports (container-type: inline-size) {
    .qrcode-slot{
        width: clamp(160px, 12.5cqw, 260px);
    }
}
.qrcode-placeholder{
    font-size: clamp(12px, calc(100vw * 16 / 1920), 16px);
    color: rgba(255,255,255,0.55);
    -webkit-text-stroke: 0;
    text-shadow: none;
}
@supports (container-type: inline-size) {
    .qrcode-placeholder{
        font-size: clamp(11px, 0.833cqw, 16px);
    }
}
