/* 每日任务弹窗样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    font-family: "varien", Arial, sans-serif;
}

/* 遮罩层 */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99998;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

/* 弹窗容器 */
.dialog-container {
    width: 100%;
    height: 300px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.4);
    width: 90%;
    z-index: 99999;
    opacity: 0;
    animation: scaleIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    animation-delay: 0.1s;
}

/* 弹窗背景图 */
.dialog-bg {
    width: 100%;
    height: 100%;
    background-image: url('../../../style/images/center/task_bg.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}



/* 顶部标题横幅 */
.title-banner {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 120px;
    z-index: 2;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "varien", Arial, sans-serif;
    font-size: 48px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 4px;
}

/* 弹窗内容 */
.dialog-content {
    position: relative;
    z-index: 2;
    padding: 100px 60px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 500px;
}

/* 星期标题 */
.day-title {
    font-family: "varien", Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 3px;
    margin-bottom: 10px;
}

/* 刷新时间 */
.refresh-time {
    font-family: "varien", Arial, sans-serif;
    font-size: 8px;
    font-weight: normal;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    opacity: 0.9;
}

/* 奖励金币 */
.reward-coins {
    font-family: "varien", Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

/* 任务列表 */
.task-list {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 10px;
}

/* 任务项 */
.task-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    border-radius: 15px;
}

/* 任务图标 */
.task-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

/* 任务信息 */
.task-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* 任务名称 */
.task-name {
    font-family: "varien", Arial, sans-serif;
    font-size: 10px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

/* 任务进度 */
.task-progress {
    font-family: "varien", Arial, sans-serif;
    font-size: 10px;
    font-weight: normal;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    opacity: 0.9;
}

/* 完成图标 */
.check-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

/* 关闭按钮 */
.close-button {
    width: 110px;
    height: 30px;
    background-image: url('../../../style/images/center/close_btn.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.close-button:hover {
    transform: scale(1.05);
}

.close-button:active {
    transform: scale(0.95);
}

/* 按钮文字 */
.btn-text {
    font-family: "varien", Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}




/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 缩放弹入动画 */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.4);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 领取成功弹窗 */
.claim-success-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.4);
    width: 90%;
    max-width: 400px;
    z-index: 100000;
    opacity: 0;
    animation: scaleIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* 领取成功图片 */
.claim-success-image {
    width: 100%;
    height: auto;
    display: block;
}

/* 领取成功弹窗关闭按钮 */
.claim-close-button {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 34px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.claim-close-button:hover {
    transform: translateX(-50%) scale(1.05);
}

.claim-close-button:active {
    transform: translateX(-50%) scale(0.95);
}