.fortune-payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.fortune-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: fortune-modal-appear 0.3s ease;
}

@keyframes fortune-modal-appear {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.fortune-modal-header {
    background: linear-gradient(135deg, #4361ee, #3a56d4);
    color: white;
    padding: 20px;
    position: relative;
    text-align: center;
}

.fortune-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.fortune-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.fortune-modal-body {
    padding: 30px 20px;
    text-align: center;
}

.fortune-status-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #4361ee;
}

.fortune-status-icon .fa-spin {
    animation: fa-spin 2s infinite linear;
}

.fortune-status-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.fortune-progress-container {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.fortune-progress-bar {
    height: 100%;
    width: 0%;
    background-color: #4361ee;
    border-radius: 4px;
    transition: width 0.5s ease, background-color 0.5s ease;
}

.fortune-order-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: left;
}

.fortune-order-info p {
    margin: 8px 0;
    font-size: 0.9rem;
    color: #555;
}

.fortune-order-info span {
    font-weight: 600;
    color: #333;
}

.fortune-modal-footer {
    padding: 20px;
    text-align: right;
    background-color: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.fortune-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fortune-btn-primary {
    background-color: #4361ee;
    color: white;
}

.fortune-btn-primary:hover {
    background-color: 3a56d4;
    transform: translateY(-2px);
}

.fortune-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.fortune-btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

/* 支付页面弹窗样式 */
.fortune-payment-iframe-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999999;
}

.fortune-payment-iframe-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    height: 80%;
    max-height: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: fortune-modal-appear 0.3s ease;
    display: flex;
    flex-direction: column;
}

.fortune-payment-iframe-header {
    background: linear-gradient(135deg, #4361ee, #3a56d4);
    color: white;
    padding: 15px 20px;
    position: relative;
    text-align: center;
    flex-shrink: 0;
}

.fortune-payment-iframe-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.fortune-payment-close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.fortune-payment-iframe-body {
    flex-grow: 1;
    padding: 0;
    overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .fortune-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .fortune-status-icon {
        font-size: 3rem;
    }
    
    .fortune-status-text {
        font-size: 1.1rem;
    }
    
    .fortune-modal-footer {
        flex-direction: column;
    }
    
    .fortune-btn {
        width: 100%;
    }
    
    .fortune-payment-iframe-content {
        width: 95%;
        height: 70%;
        max-height: 500px;
    }
    
    .fortune-payment-iframe-header h3 {
        font-size: 1.1rem;
    }
}
.fortune-image-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 25px 20px;
    text-align: center;
    max-width: 420px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

.fortune-image-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #222;
}

.fortune-image-desc {
    font-size: 14px;
    color: #888; /* 灰色字体 */
    margin-bottom: 20px;
    line-height: 1.5;
}

.fortune-direct-link {
    display: inline-block;
    padding: 10px 16px;
    border: 2px solid #87CEFA; /* 浅蓝边框 */
    border-radius: 6px;
    color: #6a00ff; /* 紫色文字 */
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.fortune-direct-link:hover {
    background: #87CEFA;
    color: #fff;
}
