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

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

body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* 遮罩层 */
.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;
    top: 80px;
    z-index: 2;
    display: flex;
    min-height: 280px;
}

.dialog-content-success {
    position: relative;
    top: 80px;
    z-index: 2;
    min-height: 280px;
}

/* 道具图标容器 */
.prop-icon-container {
    position: relative;
    left: 30px;
    width: 110px;
    height: 80px;
    flex-shrink: 0;
}

/* 道具图标背景 */
.prop-icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../../../style/images/home/prop_icon_bg.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

/* 道具图标 */
.prop-icon {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 40%;
    object-fit: contain;
    z-index: 2;
}

/* 右侧内容区域 */
.content-right {
    margin-left: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

/* 价格标签 */
.price-tag {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border-radius: 20px;
}

.php-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.price-text {
    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);
}

/* 道具名称 */
.prop-name {
    font-family: "varien", Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

/* 道具描述 */
.prop-description {
    font-size: 8px;
    font-weight: normal;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.5;
    letter-spacing: 0.5px;
}

/* 每日限制 */
.daily-limit {
    font-size: 8px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

/* 按钮容器 */
.button-container {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

/* 按钮通用样式 */
.dialog-btn {
    width: 100px;
    height: 40px;
    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: 10px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

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

/* PURCHASE 按钮禁用状态 */
.purchase-btn.disabled {
    background-image: url('../../../../style/icons/btn_disable_bg.png');
    cursor: not-allowed;
    pointer-events: none;
}

.purchase-btn.disabled:hover {
    transform: none;
}

.purchase-btn.disabled:active {
    transform: none;
}

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

/* 成功弹窗标题 */
.success-title {
    font-family: "varien", Arial, sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* 副标题文字 */
.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: 50px;
    letter-spacing: 0.5px;
}