.rebateWithdraw-wrap {
    width: 524px;
    padding: 0;
}

.rebateWithdraw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eaeaea;
    background: #f8f9fa;
    border-radius: 10px 10px 0 0;
}

.rebateWithdraw-amount {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
}

.rebateWithdraw-amount-label {
    font-size: 16px;
    font-weight: normal;
    color: #999;
    margin-right: 2px;
    align-self: center;
}

.rebateWithdraw-withdraw-btn {
    padding: 8px 20px;
    background: var(--baseColor);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.rebateWithdraw-tabs {
    display: flex;
    border-bottom: 1px solid #eaeaea;
    background: #f8f9fa;
}

.rebateWithdraw-tab {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.rebateWithdraw-tab:hover {
    color: var(--baseColor);
}

.rebateWithdraw-tab.active {
    color: var(--baseColor);
    font-weight: bold;
    border-bottom: 2px solid var(--baseColor);
}

.rebateWithdraw-content {
    position: relative;
}

.rebateWithdraw-list {
    padding: 10px 0;
    max-height: 500px;
    overflow-y: auto;
}

.rebateWithdraw-list-item-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.rebateWithdraw-status-pending {
    color: #ff9800;
    background: #fff3cd;
}

.rebateWithdraw-status-success {
    color: #28a745;
    background: #d4edda;
}

.rebateWithdraw-status-failed {
    color: #dc3545;
    background: #f8d7da;
}

.rebateWithdraw-voucher-btn {
    padding: 4px 10px;
    background: var(--baseColor);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.rebateWithdraw-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 10px;
}

.rebateWithdraw-list-item.rebate {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.rebateWithdraw-list-item-type {
    font-size: 13px;
    color: #333;
    text-align: left;
    padding-right: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rebateWithdraw-list-item-name {
    font-size: 13px;
    color: #333;
    text-align: left;
    padding-right: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rebateWithdraw-list-item-amount {
    font-size: 13px;
    color: #2fe45c;
    font-weight: bold;
    text-align: left;
    white-space: nowrap;
}

.rebateWithdraw-list-item-time {
    font-size: 12px;
    color: #999;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rebateWithdraw-list-item-status {
    text-align: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    justify-self: center;
    align-self: center;
}

.rebateWithdraw-list-item.withdraw {
    display: grid;
    grid-template-columns: 80px 150px 80px 1fr;
    gap: 10px;
    align-items: center;
}

.rebateWithdraw-item-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    grid-column: 4;
}

.rebateWithdraw-reject-reason {
    grid-column: 1 / -1;
    font-size: 12px;
    color: #dc3545;
    word-break: break-word;
    white-space: normal;
    text-align: left;
    box-sizing: border-box;
    margin-left: 40px;
}

.rebateWithdraw-withdraw-modal {
    width: 450px;
    max-width: 95%;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
}

.rebateWithdraw-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
}

.rebateWithdraw-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.rebateWithdraw-modal-close {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.rebateWithdraw-modal-close:hover {
    color: #333;
}

.rebateWithdraw-modal-content {
    padding: 20px;
}

.rebateWithdraw-form-item {
    margin-bottom: 20px;
}

.rebateWithdraw-form-item label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.rebateWithdraw-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    overflow: hidden;
}

.rebateWithdraw-input-prefix,
.rebateWithdraw-input-suffix {
    padding: 0 12px;
    background: #f8f9fa;
    color: #666;
    font-size: 14px;
}

.rebateWithdraw-input-prefix {
    border-right: 1px solid #eaeaea;
}

.rebateWithdraw-input-suffix {
    border-left: 1px solid #eaeaea;
}

#rebateWithdraw-amount-input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    outline: none;
    font-size: 14px;
}

.rebateWithdraw-balance-tip {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

.rebateWithdraw-upload-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rebateWithdraw-upload-btn {
    position: relative;
    width: 100px;
    height: 100px;
    border: 2px dashed #eaeaea;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.rebateWithdraw-upload-btn:hover {
    border-color: var(--baseColor);
    background: #e3f2fd;
}

#rebateWithdraw-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.rebateWithdraw-upload-btn-inner {
    text-align: center;
}

.rebateWithdraw-upload-icon {
    display: block;
    font-size: 24px;
    color: #999;
    margin-bottom: 5px;
}

.rebateWithdraw-uploaded-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rebateWithdraw-uploaded-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rebateWithdraw-uploaded-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.rebateWithdraw-uploaded-img:hover {
    transform: scale(1.05);
}

.rebateWithdraw-uploaded-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: #dc3545;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rebateWithdraw-uploaded-delete:hover {
    background: #dc3545;
    color: #fff;
}

/* 底部按钮样式 */
.rebateWithdraw-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eaeaea;
}

.rebateWithdraw-modal-cancel,
.rebateWithdraw-modal-confirm {
    padding: 8px 20px;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rebateWithdraw-modal-cancel {
    background: #fff;
    color: #666;
}

.rebateWithdraw-modal-cancel:hover {
    background: #f8f9fa;
}

.rebateWithdraw-modal-confirm {
    background: var(--baseColor);
    color: #fff;
    border-color: var(--baseColor);
}

.rebateWithdraw-modal-confirm:hover {
    background: #2b63d9;
}

/* 图片预览样式 */
.rebateWithdraw-image-preview {
    position: relative;
    width: 90%;
    max-width: 600px;
    height: 80vh;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rebateWithdraw-image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rebateWithdraw-preview-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.rebateWithdraw-preview-close:hover {
    background: rgba(0, 0, 0, 0.7);
}
