/* 充值中心页面样式 */

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes balanceUpdate {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.pulse-animation {
    animation: pulse 0.5s ease-out;
}

.balance-update {
    animation: balanceUpdate 0.8s ease-out;
}

.input-focus {
    border-radius: 10px;
    overflow: hidden;
}

.loading {
    position: relative;
    color: transparent !important;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    left: calc(50% - 10px);
    top: calc(50% - 10px);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.recharge-btn.has-amount {
    background: linear-gradient(135deg, #ff6b00, #ff9500);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.2);
}

.recharge-btn.has-amount:hover {
    background: linear-gradient(135deg, #ff5a00, #ff8400);
    box-shadow: 0 7px 20px rgba(255, 107, 0, 0.3);
}

/* 账户余额信息卡片 */
.balance-info-card {
    position: relative;
    background: linear-gradient(135deg, #00823C, #006e33);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0, 130, 60, 0.15);
    overflow: hidden;
    color: #fff;
}

.balance-info-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 150px;
    opacity: 0.3;
}

.balance-content {
    position: relative;
    z-index: 2;
}

.balance-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 10px;
}

.balance-title i {
    color: #fff;
    font-size: 20px;
}

.balance-amount {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.balance-decoration {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    opacity: 0.2;
    color: #fff;
}

/* 充值表单 */
.recharge-form {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.form-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 25px;
    position: relative;
    padding-left: 15px;
}

.form-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background-color: #00823C;
    border-radius: 3px;
}

/* 金额选项 */
.amount-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.amount-option {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 18px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    background: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.amount-option:hover {
    border-color: #00823C;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 130, 60, 0.1);
}

.amount-option.active {
    border-color: #00823C;
    background-color: rgba(0, 130, 60, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 130, 60, 0.1);
}

.amount-option.active::after {
    content: '\ea77';
    font-family: 'remixicon';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 22px;
    height: 22px;
    background-color: #00823C;
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 9px;
}

.amount-value {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.amount-popular, .amount-tag {
    position: absolute;
    top: -1px;
    left: -1px;
    font-size: 12px;
    padding: 3px 8px;
    border-top-left-radius: 9px;
    border-bottom-right-radius: 10px;
    color: #fff;
    font-weight: 500;
}

.amount-popular {
    background-color: #FF9500;
}

.amount-tag {
    background-color: #FF3B30;
}

/* 自定义金额输入 */
.custom-amount {
    margin-bottom: 35px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    border-radius: 10px;
}

.input-prefix {
    position: absolute;
    left: 15px;
    color: #666;
    font-size: 18px;
    font-weight: 500;
}

#custom-amount-input {
    width: 100%;
    padding: 15px 15px 15px 35px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s;
    background-color: #f9f9f9;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

/* 移除数字输入框的上下箭头 */
#custom-amount-input::-webkit-outer-spin-button,
#custom-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#custom-amount-input:focus {
    outline: none;
    border-color: #00823C;
    box-shadow: none;
    background-color: #fff;
}

#custom-amount-input::placeholder {
    color: #aaa;
}

/* 支付方式 */
.payment-methods {
    margin-bottom: 35px;
}

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

.payment-option {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    background: #f9f9f9;
}

.payment-option:hover {
    border-color: #00823C;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 130, 60, 0.1);
}

.payment-option.active {
    border-color: #00823C;
    background-color: rgba(0, 130, 60, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 130, 60, 0.1);
}

.payment-option img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: all 0.3s;
}

.payment-option:hover img {
    transform: scale(1.05);
}

.payment-option span {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.check-icon {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 22px;
    height: 22px;
    background-color: #00823C;
    color: #fff;
    font-size: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 9px;
}

.payment-option.active .check-icon {
    display: flex;
}

/* 充值按钮 */
.recharge-action {
    margin-bottom: 30px;
}

.recharge-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #00823C, #006e33);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 130, 60, 0.2);
    position: relative;
    overflow: hidden;
}

.recharge-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s;
}

.recharge-btn:hover {
    background: linear-gradient(135deg, #006e33, #005a2a);
    box-shadow: 0 7px 20px rgba(0, 130, 60, 0.3);
    transform: translateY(-2px);
}

.recharge-btn:hover::before {
    left: 100%;
}

.recharge-btn i {
    font-size: 20px;
}

/* 温馨提示 */
.recharge-tips {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px 25px;
    border-left: 4px solid #00823C;
}

.recharge-tips h4 {
    font-size: 16px;
    color: #555;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recharge-tips h4 i {
    color: #00823C;
    font-size: 18px;
}

.recharge-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recharge-tips li {
    font-size: 14px;
    color: #777;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.recharge-tips li:last-child {
    margin-bottom: 0;
}

.recharge-tips li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #00823C;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .amount-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recharge-form {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .amount-options {
        grid-template-columns: 1fr;
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
    
    .balance-info-card {
        padding: 20px;
    }
    
    .balance-amount {
        font-size: 30px;
    }
}

/* 确保聚焦效果与输入框圆角一致 */
.input-wrapper:focus-within {
    border-radius: 10px;
    box-shadow: 0 0 0 3px rgba(0, 130, 60, 0.1);
    overflow: hidden;
} 