/* ===== 每日签到弹窗 ===== */
@font-face {
    font-family: 'DOUYINSANSBOLD';
    src: url('../../fonts/DOUYINSANSBOLD.OTF') format('opentype');
}

.daily-checkin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    animation: checkin-fade-in 0.3s ease;
}

@keyframes checkin-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 遮罩层之上的装饰图 */
.daily-checkin-overlay-deco {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    z-index: 0;
}

.daily-checkin-modal {
    width: calc(100% - clamp(40px, 10vw, 80px));
    max-width: 85vw;
    border-radius: clamp(14px, 2.4vw, 22px);
    overflow: visible;
    text-align: center;
    padding: 0;
    background: transparent;
    box-shadow: none;
    position: relative;
    z-index: 1;
    margin-top: -18vw;
    animation: checkin-pop-in 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes checkin-pop-in {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 顶部出框图 */
.daily-checkin-header-img {
    display: block;
    width: 54vw;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    transform: translateY(15vw);
    pointer-events: none;
}

/* 内容区 */
.daily-checkin-content {
    background: #FEF5E4 url('https://upload.shop.yueshangxue.com/upload/20260708/202607086a4e303dddfac.webp') center/100% 100% no-repeat;
    border-radius: 6vw;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    /* min-height: 109vw; */
    padding: 0vw 5vw 5vw;
    box-sizing: border-box;
}

.daily-checkin-subtitle {
    font-family: 'DOUYINSANSBOLD';
    font-size: 5vw;
    color: #E62138;
    margin-top: 17vw;
    font-weight: 800;
    line-height: 1.5;
}

/* 奖品描述区（图片+纯文字布局） */
.daily-checkin-desc-area {
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4vw;
    gap: 4vw;
    box-sizing: border-box;
}

.daily-checkin-desc-img {
    width: 10vw;
    height: auto;
    flex-shrink: 0;
}

.daily-checkin-desc-text {
    display: flex;
    flex-direction: column;
    gap: 2vw;
}

.daily-checkin-desc-line {
    display: flex;
    align-items: center;
    gap: 2vw;
    line-height: 1.4;
}

.daily-checkin-desc-label {
    font-size: 7.5vw;
    color: #8A2D30;
    font-weight: 700;
    white-space: nowrap;
}

.daily-checkin-desc-reward {
    font-family: 'DOUYINSANSBOLD';
    color: #8A2D30;
    line-height: 1.3;
}

.daily-checkin-desc-sign {
    font-size: 5vw;
}

.daily-checkin-desc-num {
    font-size: 6vw;
    font-family: 'Alibaba-PuHuiTi-Bold';
}

.daily-checkin-desc-unit {
    font-size: 4.5vw;
}

.daily-checkin-cumulative {
    font-size: 4vw;
    margin-top: 6vw;
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 8vw;
    color: #757575;
}

/* 按钮区 */
.daily-checkin-actions-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 3vw, 20px);
    width: 100%;
}

.daily-checkin-action-btn {
    flex: 1;
    min-height: 12vw;
    border: none;
    border-radius: 99px;
    background: linear-gradient(to right, #FF9737, #FF6B2B);
    color: #fff;
    font-family: "Alibaba-PuHuiTi-Bold";
    font-size: 5vw;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s, transform 0.15s;
}

.daily-checkin-action-btn:active {
    transform: scale(0.95);
    opacity: 0.85;
}

/* 关闭按钮 */
.daily-checkin-close-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: clamp(24px, 5vw, 36px) auto 0;
    width: clamp(36px, 8vw, 44px);
    height: clamp(36px, 8vw, 44px);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: #fff;
    font-size: clamp(18px, 4vw, 24px);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s;
    line-height: 1;
}

.daily-checkin-close-circle:active {
    background: rgba(255,255,255,0.15);
}
