/* 积分充值模态框样式 */
.modal-recharge {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    border: 1px solid rgba(78, 204, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(78, 204, 255, 0.2);
    color: #fff;
    padding: 30px;
    text-align: center;
    z-index: 1001;
    width: 90%;
    max-width: 400px;
    box-sizing: border-box;
}

.modal-recharge.active {
    display: block;
    animation: fadeInModal 0.4s ease;
}

/* 关闭按钮样式 */
.modal-recharge .close-recharge-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(78, 204, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 2;
}

.modal-recharge .close-recharge-button:hover {
    color: #4eceff;
    transform: scale(1.1);
}

.modal-recharge .close-recharge-button svg {
    width: 20px;
    height: 20px;
}

.modal-recharge h2 {
    background: none;
    -webkit-background-clip: none;
    background-clip: none;
    color: #00dbff;
    text-shadow: 0 0 7px rgba(0, 219, 255, 0.3);
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 1px;
    font-size: 24px;
}

.recharge-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.recharge-option {
    border: 1px solid rgba(78, 204, 255, 0.3);
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(26, 26, 46, 0.5);
}

.recharge-option:hover, .recharge-option.selected {
    border-color: #4eceff;
    background: rgba(78, 204, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.recharge-option h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #fff;
}

.recharge-option p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.recharge-option .price {
    font-size: 20px;
    background: none;
    -webkit-background-clip: none;
    background-clip: none;
    color: #00dbff;
    margin-top: 10px;
    font-weight: bold;
}

.custom-amount {
    margin-top: 20px;
    border-top: 1px solid rgba(78, 204, 255, 0.2);
    padding-top: 20px;
}

.custom-amount h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #fff;
}

.custom-amount .input-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

.custom-amount input[type="number"] {
    flex: 1;
    background: rgba(22, 33, 62, 0.5);
    border: 1px solid rgba(78, 204, 255, 0.3);
    border-radius: 12px;
    color: #fff;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    width: 100%;
    transition: all 0.3s ease;
    -moz-appearance: textfield;
}

.custom-amount input[type="number"]::-webkit-outer-spin-button,
.custom-amount input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-amount input[type="number"]:focus {
    border-color: #4eceff;
    box-shadow: 0 0 8px rgba(78, 204, 255, 0.3);
}

/* 自定义数字控制按钮样式 */
.number-controls {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    height: 70%;
    background: rgba(11, 22, 44, 0.5);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(78, 204, 255, 0.3);
}

.number-control {
    border: none;
    background: transparent;
    color: rgba(78, 204, 255, 0.7);
    width: 24px;
    height: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.number-control svg {
    width: 14px;
    height: 14px;
}

.number-control:hover {
    background: rgba(78, 204, 255, 0.1);
    color: #4eceff;
}

.number-control:active {
    background: rgba(78, 204, 255, 0.2);
}

.number-control.up {
    border-bottom: 1px solid rgba(78, 204, 255, 0.2);
}

.custom-amount p {
    margin: 10px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.custom-amount .points-preview {
    font-size: 16px;
    background: none;
    -webkit-background-clip: none;
    background-clip: none;
    color: #00dbff;
    margin: 10px 0;
    font-weight: 500;
}

.recharge-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.recharge-buttons button {
    flex: 1;
    padding: 12px 0;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.recharge-buttons button.cancel {
    background: linear-gradient(135deg, #ff4444, #ff00ff);
    box-shadow: 0 4px 8px rgba(255, 0, 128, 0.2);
}

.recharge-buttons button.confirm {
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    box-shadow: 0 4px 8px rgba(0, 210, 255, 0.2);
}

.recharge-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.recharge-buttons button.cancel:hover {
    background: linear-gradient(135deg, #ff5e5e, #ff3cff);
}

.recharge-buttons button.confirm:hover {
    background: linear-gradient(135deg, #4e95e6, #25e1ff);
}

/* Button hover effect */
.recharge-buttons button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
    z-index: 1;
}

.recharge-buttons button:hover::after {
    left: 100%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-recharge {
        width: 95%;
        max-width: 320px;
        padding: 20px 15px;
    }
    
    .recharge-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .recharge-option {
        padding: 8px 5px;
    }
    
    .recharge-option h3 {
        font-size: 14px;
        margin-bottom: 2px;
    }
    
    .recharge-option p {
        font-size: 12px;
        margin-bottom: 2px;
    }
    
    .recharge-option .price {
        font-size: 16px;
        margin-top: 5px;
    }
    
    .modal-recharge h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .custom-amount h3 {
        font-size: 16px;
    }
    
    .custom-amount input[type="number"] {
        font-size: 14px;
        padding: 8px 12px;
        padding-right: 30px;
    }
    
    .number-controls {
        height: 65%;
        width: 22px;
    }
    
    .number-control svg {
        width: 12px;
        height: 12px;
    }
    
    .recharge-buttons button {
        padding: 10px 0;
        font-size: 14px;
    }
}

/* 支付结果模态框样式 */
.modal-payment-result {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-payment-result.active {
    opacity: 1;
}

.payment-result-container {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    border: 1px solid rgba(78, 204, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(78, 204, 255, 0.2);
    padding: 30px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    transform: translateY(20px);
    animation: slideUpFade 0.3s forwards;
}

@keyframes slideUpFade {
    to {
        transform: translateY(0);
    }
}

.payment-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-icon.success svg {
    stroke: #00dbff;
    stroke-width: 2;
    animation: drawCheck 1s ease forwards;
}

.payment-icon.error svg {
    stroke: #ff4444;
    stroke-width: 2;
    animation: drawCross 0.6s ease forwards;
}

@keyframes drawCheck {
    from {
        stroke-dashoffset: 100;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawCross {
    from {
        stroke-dashoffset: 100;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.payment-result-container h3 {
    color: #00dbff;
    font-size: 24px;
    margin-bottom: 15px;
}

.payment-result-container p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
}

.payment-result-container button {
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    border: none;
    border-radius: 12px;
    padding: 12px 30px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.payment-result-container button:hover {
    background: linear-gradient(135deg, #4e95e6, #25e1ff);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.payment-result-container button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 二维码支付模态框样式 */
.modal-qr-payment {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-qr-payment.active {
    opacity: 1;
}

.qr-payment-container {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    border: 1px solid rgba(78, 204, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(78, 204, 255, 0.2);
    padding: 25px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    animation: slideUpFade 0.3s forwards;
}

.close-qr-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(78, 204, 255, 0.7);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 2;
}

.close-qr-button:hover {
    color: #4eceff;
    transform: scale(1.1);
}

.close-qr-button svg {
    width: 20px;
    height: 20px;
}

.qr-payment-container h3 {
    color: #00dbff;
    font-size: 22px;
    margin-bottom: 20px;
}

.qr-code-wrapper {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    margin: 0 auto 15px;
    display: inline-block;
}

#qr-code-container {
    width: 200px;
    height: 200px;
}

.qr-tip {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.5;
}

.qr-order-info {
    border-top: 1px solid rgba(78, 204, 255, 0.2);
    padding-top: 15px;
    margin-top: 10px;
}

.qr-order-info p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.qr-order-info span {
    color: #fff;
    font-weight: 500;
}

#qr-order-amount {
    color: #00dbff;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .payment-result-container,
    .qr-payment-container {
        width: 90%;
        max-width: 320px;
        padding: 20px;
    }
    
    .payment-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .payment-result-container h3,
    .qr-payment-container h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .payment-result-container p,
    .qr-tip {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .payment-result-container button {
        padding: 10px 25px;
        font-size: 15px;
    }
    
    #qr-code-container {
        width: 180px;
        height: 180px;
    }
}

/* 支付等待遮罩 */
.payment-waiting-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-waiting-overlay.active {
    opacity: 1;
}

.payment-waiting-container {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    border: 1px solid rgba(78, 204, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(78, 204, 255, 0.2);
    padding: 25px;
    width: 90%;
    max-width: 300px;
    text-align: center;
    transform: translateY(10px);
    animation: fadeInUp 0.4s forwards;
}

.payment-waiting-container h3 {
    color: #00dbff;
    font-size: 20px;
    margin-bottom: 15px;
}

.payment-waiting-container p {
    color: rgba(255, 255, 255, 0.8);
    margin: 10px 0 20px 0;
    font-size: 14px;
    line-height: 1.5;
}

.payment-spinner {
    margin: 0 auto 15px;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(78, 204, 255, 0.3);
    border-top: 3px solid #00dbff;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 