/**
 * 提现功能样式
 */

/* 提现模态框基础样式 */
.withdrawal-modal .modal-content,
.withdrawal-form-modal .modal-content,
.withdrawal-history-modal .modal-content {
    max-width: 480px;
    width: 90%;
}

/* 提现历史记录弹窗 */
.withdrawal-history-modal .modal-content {
    max-width: 600px;
}

.withdrawal-history-list {
    max-height: 400px;
    overflow-y: auto;
}

/* 提现方式选择 */
.withdraw-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.method-card {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.method-card:hover {
    border-color: #5D9968;
    background: #f8fffe;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(93, 153, 104, 0.1);
}

.method-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 16px;
    font-size: 24px;
}

.method-card[data-method="alipay"] .method-icon {
    background: #1677ff;
    color: white;
}

.method-card[data-method="bank_card"] .method-icon {
    background: #52c41a;
    color: white;
}

.method-info {
    flex: 1;
}

.method-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.method-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.method-arrow {
    color: #999;
    font-size: 16px;
}

.wallet-info {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 6px;
    text-align: center;
}

.wallet-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.wallet-info .amount {
    font-weight: 600;
    color: #5D9968;
    font-size: 16px;
}

/* 提现表单样式 */
.withdrawal-form-modal .modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #5D9968;
    box-shadow: 0 0 0 2px rgba(93, 153, 104, 0.1);
}

.amount-input {
    position: relative;
    display: flex;
    align-items: center;
}

.amount-input input {
    padding-right: 40px;
}

.amount-input .currency {
    position: absolute;
    right: 16px;
    color: #666;
    font-size: 14px;
    pointer-events: none;
}

.amount-tips {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
}

.amount-tips span {
    color: #666;
}

.all-amount-btn {
    background: none;
    border: none;
    color: #5D9968;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
}

.all-amount-btn:hover {
    color: #4a7c54;
}

.form-tips {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: #fff7e6;
    border: 1px solid #ffd591;
    border-radius: 6px;
    font-size: 13px;
    color: #d46b08;
    margin-top: 16px;
}

.form-tips i {
    margin-top: 2px;
    flex-shrink: 0;
}

/* 提现记录样式 */
.withdrawal-records {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.withdrawal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.withdrawal-item:last-child {
    border-bottom: none;
}

.withdrawal-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.withdrawal-method {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.withdrawal-method i {
    font-size: 18px;
}

.withdrawal-method i.fab.fa-alipay {
    color: #1677ff;
}

.withdrawal-method i.fas.fa-credit-card {
    color: #52c41a;
}

.withdrawal-amount {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.withdrawal-details {
    text-align: right;
}

.withdrawal-status {
    margin-bottom: 4px;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: #fff7e6;
    color: #d46b08;
    border: 1px solid #ffd591;
}

.status-processing {
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.status-completed {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.status-rejected {
    background: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

.withdrawal-time {
    font-size: 12px;
    color: #999;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ddd;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .withdrawal-modal .modal-content,
    .withdrawal-form-modal .modal-content {
        width: 95%;
        max-width: none;
        margin: 20px auto;
    }
    
    .withdrawal-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .withdrawal-details {
        text-align: left;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .method-card {
        padding: 12px;
    }
    
    .method-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-right: 12px;
    }
}
