/* 模态窗口遮罩层 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 模态窗口容器 */
.modal-container {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

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

/* 模态窗口头部 */
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
    line-height: 1;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 模态窗口主体 */
.modal-body {
    padding: 30px 20px;
}

.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 16px;
}

.info-row label {
    color: #666;
    min-width: 100px;
    font-weight: 500;
}

.info-row span {
    color: #333;
    font-weight: 600;
}

/* 金额行 */
.amount-row {
    align-items: flex-start;
}

.amount-container {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 10px;
}

.amount-display {
    font-size: 18px;
    color: #f56c6c;
    font-weight: bold;
}

/* 自定义充值行 */
.custom-amount-row {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.custom-amount-row label {
    align-self: flex-start;
    padding-top: 5px;
}

.exchange-rate {
    font-size: 14px;
    color: #1677ff;
    background: #e6f4ff;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-weight: 500;
}

.amount-input {
    width: 150px;
    padding: 10px 15px;
    font-size: 18px;
    border: 2px solid #dcdfe6;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s;
}

.amount-input:focus {
    border-color: #667eea;
}

.currency {
    margin-left: 8px;
    color: #f56c6c;
    font-size: 18px;
    font-weight: 600;
}

/* 支付方式 */
.payment-method {
    display: flex;
    gap: 10px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid #dcdfe6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
}

.payment-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.payment-option.selected {
    border-color: #1677ff;
    background: #e6f4ff;
}

.payment-icon {
    width: 24px;
    height: 24px;
    background: #1677ff;
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

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

/* 模态窗口底部 */
.modal-footer {
    padding: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f5f5f5;
    border-top: 1px solid #e8e8e8;
}

.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-cancel {
    background: #fff;
    color: #666;
    border: 1px solid #dcdfe6;
}

.btn-cancel:hover {
    background: #f5f5f5;
    border-color: #c0c4cc;
}

.btn-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-confirm:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 600px) {
    .modal-container {
        width: 95%;
        margin: 10px;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    .info-row {
        /* 保持横向布局，标签和内容在同一行 */
        flex-direction: row;
        align-items: center;
        margin-bottom: 15px;
    }
    
    .info-row label {
        min-width: 80px;
        font-size: 14px;
    }
    
    .info-row span {
        font-size: 14px;
    }
    
    .amount-container {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .amount-input {
        width: 120px;
        font-size: 16px;
    }
    
    .exchange-rate {
        font-size: 12px;
    }
    
    .modal-footer {
        padding: 15px;
    }
    
    .btn {
        flex: 1;
        padding: 12px 20px;
        font-size: 14px;
    }
}

