/* 确保联系方式图标内的图标元素保持正确样式 */
.contact .list-inline-item .fab,
.contact .list-inline-item .fas,
.contact .list-inline-item .far,
.contact .list-inline-item .fa,
.contact .list-inline-item .icon {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  line-height: inherit !important; /* 继承父元素的line-height */
}

/* 表单元素基础样式 */
.foxpay-box label input::-webkit-outer-spin-button,
.foxpay-box label input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
}

.foxpay-box label input[type="number"] {
    -moz-appearance: textfield;
}


/* 支付宝风格模态框样式 - 添加命名空间限制 */
#qrCodeModal .modal-content {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    margin: 0 auto;
}

#qrCodeModal .modal-header {
    background-color: #fff;
    border-bottom: none;
    padding: 35px 0 0;
    position: relative;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#qrCodeModal .alipay-logo {
    height: auto;
    max-width: 120px;
    margin: 0 auto;
    padding: 5px 0;
}

#qrCodeModal .modal-header .close {
    position: absolute;
    right: 15px;
    top: 15px;
    margin: 0;
    padding: 0;
    opacity: 0.7;
}

#qrCodeModal .modal-body {
    padding: 5px 15px 15px;
    text-align: center;
}

#qrCodeModal .alipay-amount {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

#qrCodeModal .amount-value {
    font-weight: bold;
    color: #000;
}

#qrCodeModal .qrcode-wrapper {
    padding: 0;
    margin-bottom: 0;
}

#qrCodeModal #modalQrCode {
    width: 180px;
    height: 180px;
    border: none !important;
    margin: 0 auto;
}

#qrCodeModal .alipay-footer {
    background-color: #00a0e9;
    color: white;
    padding: 12px 15px;
    font-size: 14px;
    text-align: center;
}

#qrCodeModal .alipay-timer {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.9;
}

#qrCodeModal .modal-footer {
    display: none;
}

#qrCodeModal #payStatusIndicator {
    margin-top: 10px;
}

/* 充值表单按钮样式，添加命名空间限制 */
.fox-payment-form .payamount {
    margin: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.fox-payment-form .payamount.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.fox-payment-form .payamount.other {
    background-color: var(--light);
}

/* 美化提示样式，限制应用范围 */
.fox-payment-form #amountAlert {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-left: 4px solid #dc3545;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .fox-payment-form .payamount {
        margin-right: 5px !important;
        margin-bottom: 5px !important;
        min-width: 50px;
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    #qrCodeModal #modalQrCode {
        width: 160px;
        height: 160px;
    }
    
    .fox-payment-table .table-responsive {
        font-size: 0.9rem;
    }
    
    .fox-payment-table .table td, 
    .fox-payment-table .table th {
        padding: 0.5rem;
    }
    
    .fox-payment-form .card-body {
        padding: 1.25rem 1rem;
    }
    
    .fox-payment-form .input-group-text {
        padding: .375rem .5rem;
    }
}

/* 确保图标样式不受影响 */
.fox-payment-form .icon,
.fox-payment-form .fas,
.fox-payment-form .fa,
.fox-payment-form .far,
.fox-payment-form .fab {
    display: inline-block;
    width: auto;
    height: auto;
}

/* 确保微信图标不被影响 */
.fa-weixin,
.fab.fa-weixin,
.icon-weixin,
[class^="icon-wechat"],
[class*=" icon-wechat"] {
    /* 重置可能被覆盖的属性 */
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    background-image: none !important;
    margin: initial !important;
    padding: initial !important;
}