/* 使用道具确认弹窗样式 */

* {
    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 {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.4);
    width: 90%;
    max-width: 600px;
    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/home/use_bg.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: 31px;
    right: 15px;
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    z-index: 3;
    transition: transform 0.2s ease;
}

.close-btn:hover {
    transform: scale(1.1);
}

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

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

/* 标题文字 */
.dialog-title {
    font-family: "varien", Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* 成功弹窗标题 */
.success-title {
    font-size: 18px;
    margin-bottom: 20px;
}

/* 副标题文字 */
.dialog-subtitle {
    font-family: "varien", Arial, sans-serif;
    font-size: 16px;
    font-weight: normal;
    color: #ffffff;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

/* 按钮容器 */
.button-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

/* 按钮通用样式 */
.dialog-btn {
    width: 100px;
    height: 35px;
    background-image: url('../../../style/images/home/btn_bg.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;
    position: relative;
}

.dialog-btn:hover {
    transform: scale(1.05);
}

.dialog-btn:active {
    transform: scale(0.95);
}

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

/* YES 按钮 */
.yes-btn {
    /* 可以添加特殊样式 */
}

/* CANCEL 按钮 */
.cancel-btn {
    /* 可以添加特殊样式 */
}

/* 淡入动画 */
@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);
    }
}